package com.aaa.medicine.service.impl;

import com.aaa.entity.PurchaseItem;
import com.aaa.medicine.dao.ExamineMapper;
import com.aaa.medicine.service.ExamineService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExamineServiceImpl extends ServiceImpl<ExamineMapper, PurchaseItem> implements ExamineService {
    @Autowired
    private ExamineMapper examineMapper;
    @Override
    public  List<PurchaseItem>  examine(String purchaseId) {
        QueryWrapper queryWrapper=new QueryWrapper<>();
        queryWrapper.eq("purchase_id",purchaseId);
        List<PurchaseItem>  list = examineMapper.selectList(queryWrapper);
        return list;
    }
}
